public class java20240327 {
    public static void main(String[] args) {
        /*int a = 0xf;
        System.out.printf("%x\n", ~a);*/

        /*int a = 0x1;
        int b = 0x2;
        System.out.printf("%x\n" , a ^ b);*/
/*
        int a = 10;
        int b = 20;
        int max = a > b ?a:b;
        System.out.println(max);*/

        /*int a = 10;
        int b = 20;
        int c = a > b?1:2.0;*/


        /*int a = 10;
        int b = 20;
        a > b? a : b; // 报错：Error:(15, 14) java: 不是语句*/

        // 求a和b的平均值
        /*int a = 10;
        int b = 20;
        int c = a + (b - a) >> 1;
        System.out.println(c);*/

        /*int score = 92;
        if(score >= 90){
            System.out.println("优秀");
        }*/

        /*int score = 93;
        if(score >= 60){
            System.out.println("及格");
        }else {
            System.out.println("不及格");
        }*/
        int score = 95;
        if(score >= 90){
            System.out.println("优秀");
        }else if(score >= 80 && score < 90){
            System.out.println("良好");
        }else if(score >= 70 && score < 80){
            System.out.println("中等");
        }else if(score >= 60 && score < 70){
            System.out.println("及格");
        }else if(score >= 0 && score < 60){
            System.out.println("不及格");
        }else{
            System.out.println("错误数据");
        }

    }
}
